package com.yizhuoyan.his.dao;

import com.yizhuoyan.his.dto.DocPrescriptionDto;
import com.yizhuoyan.his.entity.DocPrescriptionEntity;

import java.util.List;

/**
 * (DocPrescription)表数据库访问层
 *
 * @author yizhuoyan@yizhuoyan.com
 * @since 2020-02-20 15:06:05
 */
public interface DocPrescriptionDao extends TemplateDao<Long,DocPrescriptionEntity>{

    //额外方法
    List<DocPrescriptionEntity> selectDoctor (long id) throws Exception;

    /**
     * 通过病例id来查找中成药处方
     * @param medicalRecordId 病例id
     * @throws Exception id不存在
     * @throws NullPointerException 数据不存在
     */
    List<DocPrescriptionEntity> selectByMedicalRecordId(long medicalRecordId)throws Exception;

}